<template>
  <div class="v2ex-head">
    <div class="head-content">
      <img id="v2ex-logo" src="../assets/logo.png" />
      <v2ex-input v-model="inputValue" :on-icon-click="handleIconClick"></v2ex-input>
    </div>
  </div>
</template>

<script>
  import V2exInput from "./SelectInput";
  export default{
    components: {V2exInput},
    name : 'v2ex-head',
    data() {
      return {
        inputValue : '',
      }
    },
    methods : {
      handleIconClick : function (ev) {
        alert(this.inputValue)
      }
    }
  }
</script>

<style scoped>
  .v2ex-head{
    height: 45px;
    padding: 0 20px 0 20px;
    background: white;
  }
  .head-content{
    min-width: 600px;
    max-width: 1100px;
    margin: 0 auto 0 auto;
    height: 45px;
    display: flex;
  }
  #v2ex-logo{
    width: 94px;
    height: 30px;
    margin-top: 7px;
  }
  .v2ex-input{
    margin-top: 7px;
    margin-left: 50px;
  }
</style>
